/*
 * Session.h
 *
 *  Created on: 2014. 7. 1.
 *      Author: jjaehuny
 */

#ifndef FRAMEWORK_DATABASE_SESSION_H_
#define FRAMEWORK_DATABASE_SESSION_H_

#include <memory>

namespace Framework { namespace Database {

class Command;

class Session
{
public:
	struct Param {
		int type_;
		int count_;

		std::string host_;
		std::string user_;
		std::string pass_;
		std::string name_;
	};

public:
	Session();
	virtual ~Session();

	bool Open(Param & param);
	void Execute(std::shared_ptr<Command> command);
};

} /*Database*/ } /*Framework*/

#endif /* FRAMEWORK_DATABASE_SESSION_H_ */
